Skip to content

BearSSL canary at f8a2f3d (P-256 check_scalar fix) - #25

Merged
pinhopro merged 2 commits into
mainfrom
bearssl-check-scalar
Dec 4, 2026
Merged

pinhopro merged 2 commits into
mainfrom
bearssl-check-scalar

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Moves the BearSSL canary to webcpporg/bearssl f8a2f3d: upstream 7bea48e plus the two fixes submitted upstream, the ECDSA bits2int one (ae63032) and P-256's scalar range check (ec57f88). Clang on x86-64 compiled check_scalar() in ec_p256_m62/m64 into a conditional jump on the secret scalar, which the ctgrind lanes flagged; the fix computes k - 1 < n - 1 with borrow chains only.

The canary lint stays red here until webcpp#65 moves the superproject's BearSSL gitlink, because library CI checks out webcpp main (same as crypto#20). webcpp#65 then points libs/crypto at this merge.

Verified locally: ctgrind and ctgrind_space on x86-64 report nothing; testcrypto all on f8a2f3d (x86-64 clang 18, arm64 gcc 13, macOS); crypto tests on macOS; canary fixtures; clang-tidy; Linux lint clean.

🤖 Generated with Claude Code

R added 2 commits December 4, 2026 00:04
…e two fixes submitted upstream: the bits2int one and P-256's scalar check, which Clang compiled into a jump on the secret scalar on x86-64
…_p256_m62, so two code spans no longer run together around a possessive
@pinhopro
pinhopro merged commit 34279bb into main Dec 4, 2026
24 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant